<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>修改用户</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">
</head>

<script type="text/javascript">
  	function  check(){
  		var userName = document.getElementById('userName').value;
			if(userName == ''){
				alert('用户名不能为空！！');
				document.getElementById('userName').focus();
				return false;
			}
			var userPassword = document.getElementById('userPassword').value;
			if(userPassword == ''){
				alert('密码不能为空！');
				document.getElementById('userPassword').focus();
				return false;
			}
			
  	
  	}
  	</script>
<body>
<table border="0" width="90%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big"><img src="<%=basePath%>/img/menu/comm.gif"
			align="absmiddle"><span class="big3"> 修改用户</span><br>
		</td>
	</tr>
</table>
<form method="post"
	action="UserManage?action=updateUser&uid=${ editUser.uid }"
	name="form1" onsubmit="check()">
<table class="TableBlock" width="500" align="center">


	<tr class="Big">
		<td class="TableData" width="120"><b>用户名：</b></td>
		<td class="TableData"><b> <input type="text" name="userName"
			id="userName" class="BigInput" size="20"
			value="${editUser.userName }"></b></td>
	</tr>
	<tr class="Big">
		<td class="TableData"><b>密码：</b></td>
		<td class="TableData"><input type="text" name="userPassword"
			id="userPassword" class="BigInput" size="20"
			value="${editUser.userPassword }"></td>
	</tr>

	<tr class="Big">
		<td class="TableData"><b>班级：</b></td>
		<td class="TableData"><select name="stuClassId">
			<c:forEach items="${stuClassList}" var="sc">
				<c:choose>
					<c:when test="${editUser.stuClassId eq sc.stuClassId}">
						<option value="${sc.stuClassId }" selected>${sc.className
						}</option>
					</c:when>
					<c:otherwise>
						<option value="${sc.stuClassId }">${sc.className }</option>
					</c:otherwise>
				</c:choose>
			</c:forEach>
		</select></td>
	</tr>



	<tr align="center">
		<td class="TableControl" colspan="2"><input type="submit"
			value="保存修改" class='BigButton'> <input type="reset"
			value="重置" class='BigButton'> <input type="button" value="返回"
			class='BigButton' onclick="javascript:history.go(-1)"></td>
	</tr>

</table>
</form>

</body>
</html>
